package com.javafactroy.kunlong.bip.icp.message.data.base;

import lombok.Data;

import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;

@Data
public class AppResult {
    int code;
    String content;

    public static class PageInfo {


        //
        //
        //

        int recordNum;
        int fieldsNum;
    }

    PageInfo pageInfo;
    Map<Integer, String> fieldNames;
    List<List<String>> records;

    void decode(AppByteBuffer byteBuffer) {
        ByteBuffer buffer = byteBuffer.appPosition.copyPageInfo();
    }

    void encode(AppByteBuffer byteBuffer) {

    }
}
